﻿using System;
using System.Collections.Generic;
using System.Linq;
using DAL;
using DBUlitity;
using Model;

namespace BLL
{
    // Token: 0x02000002 RID: 2
    public class CushaBLL
    {  
        // Token: 0x04000001 RID: 1
        public static List<CustomerEquKaitingche> CustomerEquKaitingche = new List<CustomerEquKaitingche>();
        // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
        public static string getshishijilulist(string ID, string sortOrder, string sort, string time)
        {
            List<fangshagongyicanshu> list = CushaDAL.getshishijilulist(ID, sortOrder, sort, time);
            return JSONTools.ScriptSerialize<BootstrapTableData<fangshagongyicanshu>>(new BootstrapTableData<fangshagongyicanshu>
            {
                rows = list,
                total = list.Count<fangshagongyicanshu>()
            });
        }

        // Token: 0x06000002 RID: 2 RVA: 0x00002098 File Offset: 0x00000298
        public static string getluoshacanshu(string ID, string sortOrder, string sort)
        {
            List<luoshagongyicanshu> list = CushaDAL.getluoshacanshu(ID, sortOrder, sort);
            return JSONTools.ScriptSerialize<BootstrapTableData<luoshagongyicanshu>>(new BootstrapTableData<luoshagongyicanshu>
            {
                rows = list,
                total = list.Count<luoshagongyicanshu>()
            });
        }

        // Token: 0x06000003 RID: 3 RVA: 0x000020DC File Offset: 0x000002DC
        public static string getEquNolistByCustomerID(string ID)
        {
            List<CustomerEquInfo> equNolistByCustomerID = CushaDAL.getEquNolistByCustomerID(ID);
            return JSONTools.ScriptSerialize<List<CustomerEquInfo>>(equNolistByCustomerID);
        }

        public static string initFangshaKind(string ID)
        {
            List<CustomerFangshaKind> equNolistByCustomerID = CushaDAL.initFangshaKind(ID);
            return JSONTools.ScriptSerialize<List<CustomerFangshaKind>>(equNolistByCustomerID);
        }
        public static string inittotalFangshaKind(string ID)
        {
            List<CustomerFangshaKind> equNolistByCustomerID = CushaDAL.inittotalFangshaKind(ID);
            return JSONTools.ScriptSerialize<List<CustomerFangshaKind>>(equNolistByCustomerID);
        }


        // Token: 0x06000004 RID: 4 RVA: 0x00002104 File Offset: 0x00000304
        public static string getBanciByCustomerID(string ID)
        {
            List<BanciInfo> banciByCustomerID = CushaDAL.getBanciByCustomerID(ID);
            return JSONTools.ScriptSerialize<List<BanciInfo>>(banciByCustomerID);
        }

        // Token: 0x06000005 RID: 5 RVA: 0x0000212C File Offset: 0x0000032C
        public static string initdangtaijianshidata(string EquNo, string TaiHao, string Time)
        {
            List<cushashishijilu> input = CushaDAL.initdangtaijianshidata(EquNo, TaiHao, Time);
            return JSONTools.ScriptSerialize<List<cushashishijilu>>(input);
        }

        // Token: 0x06000006 RID: 6 RVA: 0x00002158 File Offset: 0x00000358
        public static string initcurrentluoshaStartEnd(string CustomerID, string TaiHao, string Time, string parmValue, string parmText)
        {
            List<luoshainfo> input = CushaDAL.initcurrentluoshaStartEnd(CustomerID, TaiHao, Time, parmValue, parmText);
            return JSONTools.ScriptSerialize<List<luoshainfo>>(input);
        }

        // Token: 0x06000007 RID: 7 RVA: 0x00002184 File Offset: 0x00000384
        public static string initdantaicushabaojingtable(string CustomerID, string TaiHao, string StartTime, string EndTime)
        {
            List<ShengchanCushaAlarm> input = CushaDAL.initdantaicushabaojingtable(CustomerID, TaiHao, StartTime, EndTime);
            return JSONTools.ScriptSerialize<List<ShengchanCushaAlarm>>(input);
        }

        // Token: 0x06000008 RID: 8 RVA: 0x000021B0 File Offset: 0x000003B0
        public static string initmubiaochanliang(string CustomerID)
        {
            List<CustomerMubiaoWancheng> input = CushaDAL.initmubiaochanliang(CustomerID);
            return JSONTools.ScriptSerialize<List<CustomerMubiaoWancheng>>(input);
        }

        // Token: 0x06000009 RID: 9 RVA: 0x000021D8 File Offset: 0x000003D8
        public static string initshishitongjitu(string CustomerID, string TaiHao, string valuetype, string texttype, string tipStartValue, string tipEndValue, string Time)
        {
            List<QuxianChart> input = CushaDAL.initshishitongjitu(CustomerID, TaiHao, valuetype, texttype, tipStartValue, tipEndValue, Time);
            return JSONTools.ScriptSerialize<List<QuxianChart>>(input);
        }

        // Token: 0x0600000A RID: 10 RVA: 0x00002208 File Offset: 0x00000408
        public static string inittingchepieA(string EquNo)
        {
            List<PieCharts> input = CushaDAL.inittingchepieA(EquNo);
            return JSONTools.ScriptSerialize<List<PieCharts>>(input);
        }

        // Token: 0x0600000B RID: 11 RVA: 0x00002230 File Offset: 0x00000430
        public static string inittingcheyuanyin(string EquNo, string type)
        {
            List<PieCharts> input = CushaDAL.inittingcheyuanyin(EquNo, type);
            return JSONTools.ScriptSerialize<List<PieCharts>>(input);
        }

        // Token: 0x0600000C RID: 12 RVA: 0x00002258 File Offset: 0x00000458
        public static string initAlarmHandle(string EquNo, string AlarmName)
        {
            ShengchanCushaAlarm input = CushaDAL.initAlarmHandle(EquNo, AlarmName);
            return JSONTools.ScriptSerialize<ShengchanCushaAlarm>(input);
        }

        // Token: 0x0600000D RID: 13 RVA: 0x00002280 File Offset: 0x00000480
        public static string inittb_cushashengchanwancheng(string CustomerID, string time)
        {
            List<cushashengchanwancheng> input = CushaDAL.inittb_cushashengchanwancheng(CustomerID, time);
            return JSONTools.ScriptSerialize<List<cushashengchanwancheng>>(input);
        }

        // Token: 0x0600000E RID: 14 RVA: 0x000022A8 File Offset: 0x000004A8
        public static string initweishajibenxinxi(string CustomerID, string time)
        {
            List<weishajibenxinxi> input = CushaDAL.initweishajibenxinxi(CustomerID, time);
            return JSONTools.ScriptSerialize<List<weishajibenxinxi>>(input);
        }

        // Token: 0x0600000F RID: 15 RVA: 0x000022D0 File Offset: 0x000004D0
        public static string getWeishajianshi(string CustomerID, string time)
        {
            List<weishajianshi> weishajianshi = CushaDAL.getWeishajianshi(CustomerID, time);
            return JSONTools.ScriptSerialize<BootstrapTableData<weishajianshi>>(new BootstrapTableData<weishajianshi>
            {
                rows = weishajianshi,
                total = weishajianshi.Count<weishajianshi>()
            });
        }

        // Token: 0x06000010 RID: 16 RVA: 0x00002314 File Offset: 0x00000514
        public static string initWeiShaTaiHaoByCustomerID(string ID)
        {
            List<CustomerEquInfo> input = CushaDAL.initWeiShaTaiHaoByCustomerID(ID);
            return JSONTools.ScriptSerialize<List<CustomerEquInfo>>(input);
        }

        // Token: 0x06000011 RID: 17 RVA: 0x0000233C File Offset: 0x0000053C
        public static string initdantaiweishabaojingtable(string CustomerID, string TaiHao, string StartTime, string EndTime)
        {
            List<WeiShaAlarm> input = CushaDAL.initdantaiweishabaojingtable(CustomerID, TaiHao, StartTime, EndTime);
            return JSONTools.ScriptSerialize<List<WeiShaAlarm>>(input);
        }

        // Token: 0x06000012 RID: 18 RVA: 0x00002368 File Offset: 0x00000568
        public static string initweishaKaitingcheInfo(string CustomerID, string TaiHao, string Type, string BanCi, string StartTime, string EndTime)
        {
            CushaBLL.CustomerEquKaitingche = CushaDAL.initweishaKaitingcheInfo(CustomerID, TaiHao, Type, BanCi, StartTime, EndTime);
            return JSONTools.ScriptSerialize<List<CustomerEquKaitingche>>(CushaBLL.CustomerEquKaitingche);
        }

        // Token: 0x06000013 RID: 19 RVA: 0x000023A0 File Offset: 0x000005A0
        public static string initweishaKaitingchedetailInfo(string CustomerID, string TaiHao, string Type, string BanCi, string StartTime, string EndTime)
        {
            List<CustomerEquKaitingcheDetail> list = new List<CustomerEquKaitingcheDetail>();
            for (int i = 0; i < CushaBLL.CustomerEquKaitingche.Count<CustomerEquKaitingche>(); i++)
            {
                list.AddRange(CushaBLL.CustomerEquKaitingche[i].detail);
            }
            return JSONTools.ScriptSerialize<List<CustomerEquKaitingcheDetail>>(list);
        }

        
    }
}
